﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<CRM.Models.Equipments>>" %>
<%@ Import Namespace="System.Threading" %>
<%@ Import Namespace="CRM.Models" %>
<%@ Import Namespace="CRM.Resourses" %>



<% using(Html.BeginForm("SelectEquipment","GetEquipment"))
   {

       Html.RenderAction("GetEquipmentList");
       
      %>  <p align="right">
            <input type="submit" value="<%: CRM.Resourses.Resourses.Save %>" />
        </p>
       
 <%  }%>




   
<script language="javascript" type="text/javascript">



    function OnSelectionChangedInEquipments(s, e) {
        if (e.isSelected) {
          //  var index = e.visibleIndex;
            var key = s.GetRowKey(e.visibleIndex);
            alert(key);
            
        }
    }


</script>

